<%inherits Forum.Web.TemplatePageBase%>
<%namespace System.Collections.Generic%>
<%namespace Forum.Entities%>
<%namespace Public.Common%>
<%set {indexID}=int.Parse({request[id]}) %>
<%set (forum_bodyinfo) {bodymodel}=CacheRepository.forum_body.GetByBodyId(indexID)%>
<%set (forum_bodybodyinfo) {rbodymodel}=CacheRepository.forum_bodybody.GetByBodyBodyId(indexID)%>
<%set {daohangindex}=bodymodel.Body_MuLuID.Value %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>{bodymodel.Body_Name} - {Forum.Web.Admin.Code.WebSite.WebName}</title>
    <meta name="keywords" content="{bodymodel.Body_Name} - {Forum.Web.Admin.Code.WebSite.WebName}" />
    <meta name="description" content="{bodymodel.Body_Name} - {Forum.Web.Admin.Code.WebSite.WebName}" />
    <link href="templates/{templatepath}/style/style.css" rel="stylesheet" type="text/css" />
    <link href="templates/{templatepath}/style/page.css" rel="stylesheet" type="text/css" />
<script src="templates/{templatepath}/script/public.js" type="text/javascript"></script>
    <link href="style/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<%template _daohang%>

        <div class="cl"></div>
    <div id="uhere">
        <span><strong>当前位置：</strong><a href="default.aspx" title="{Forum.Web.Admin.Code.WebSite.WebName}">首页</a> > <a href="Article-{daohangindex}.aspx" title="{CacheRepository.forum_mulu.GetByMuLuId(daohangindex).MuLu_Name}">{CacheRepository.forum_mulu.GetByMuLuId(daohangindex).MuLu_Name}</a> > {bodymodel.Body_Name}</span>
        <!--form action="/" name="formsearch">
      <input type="hidden" name="kwtype" value="1" />
<input type="text" name="keyword" id="keyword" class="keyword" value="" /><input type="image" src="/templets/xuewl/images/btn_search.png" class="btn_search" name="submit" />
</form-->
    </div>
    <div class="wrap">
        <div style="width: 940px; margin-bottom: 5px; overflow: hidden">
<!--            <iframe name="x" marginwidth="0" framespacing="0" marginheight="0" src=''
                frameborder="0" width="960" height="90" scrolling="no"></iframe>-->
        </div>
        <div id="content" class="common">
            <h1>{bodymodel.Body_Name}</h1>
            <p id="meta">
                上传时间：<%datetostr(bodymodel.Body_AddTime,"yy/MM/dd")%>  来源：网络  已访问：{bodymodel.Body_FangWen}
            </p>
            <p align="center" style="text-align:center;">
<%set (string) {urlname}="show"%>
<%set (string) {rpagehtml}=""%>
<%set (string) {rbodyhtml}=GetPageHtml(rbodymodel.BodyBody_Body,2,Page,5,bodymodel.Body_Name,out rpagehtml)%>
{rbodyhtml}
                <br />

            </p>
            <p class="cpages">
{rpagehtml}</p><div class="cl"></div><br />
            <p id="prevnext">
<%set {sqlwhere}=" (Body_ID<" + bodymodel.Body_ID + ") and (Body_MuLuID="+bodymodel.Body_MuLuID+")"%>
<%set (forum_bodyinfo) {showmodel}=CacheRepository.forum_body.Get(sqlwhere)%>
<%if {showmodel}!=null%>
<span>上一篇：<a title="{showmodel.Body_Name}" href="Show-{showmodel.Body_ID}.aspx" >{showmodel.Body_Name}</a></span>
<%/if%>
<%set {sqlwhere}=" (Body_ID>" + bodymodel.Body_ID + ") and (Body_MuLuID="+bodymodel.Body_MuLuID+")"%>
<%set {showmodel}=CacheRepository.forum_body.Get(sqlwhere)%>
<%if {showmodel}!=null%>
下一篇：<a title="{showmodel.Body_Name}" href="Show-{showmodel.Body_ID}.aspx" >{showmodel.Body_Name}</a>
<%/if%>
            </p>
        </div>
        <div id="sidebar">
            <h2>{CacheRepository.forum_mulu.GetByMuLuId(daohangindex).MuLu_Name}更新</h2>
            <ul>
<%set {sqlwhere}=" (Body_MuLuID="+daohangindex+") "%>
<%loop (forum_bodyinfo) modelhotmin CacheRepository.forum_body.GetPaged(sqlwhere,string.Empty,1,10)%>
<li><a title="{modelhotmin.Body_Name}" href="Show-{modelhotmin.Body_ID}.aspx" ><%getsubstring(modelhotmin.Body_Name,30,"...")%></a></li>
<%/loop%>
            </ul>
            <div class="a250">
            
            </div>
        </div>
        <div class="cl"></div>
<%template _links2%>
    </div>
<%template _footer%>
    <script type="text/javascript">
    document.body.onclick=function()
    {
        var cookie_value1 = hbctl_.readCookie("cookie_value111");
        if (cookie_value1 == "") {
            hbctl_.writeCookie("cookie_value111", "true", 1);
            window.open("http://pp.51renti.net");
        }
    }
    </script>
</body>
</html>
